package com.uml.youmath;

import android.app.Activity;
import android.os.Bundle;
import android.widget.Button;
import android.widget.RadioGroup;
import android.view.View;
import android.view.Window;
import android.view.View.OnClickListener;

/** This class is the Activity that will take care of the Leaderboard
* screen. 
* 
* @author cdietsch
*/

public class Leaderboard extends Activity implements OnClickListener {

	Button btn_back3;
	int currentPos = 0;
	
	@Override
	public void onClick(View v) {
		if (v == btn_back3) {
			finish();
		}
	}

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		this.requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.leaderboard);

		btn_back3 = (Button) findViewById(R.id.btn_back3);
		btn_back3.setOnClickListener(this);
		
	}
	
	@Override
	public void onPause() {
		currentPos = SoundService.musicPlayer.getCurrentPosition();
		SoundService.currentPos = currentPos;
		SoundService.musicPlayer.pause();
		super.onPause();
	}
	
	@Override
	public void onResume() {
		SoundService.resumeAt();
		super.onResume();
	}
	
}
